using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.Text;

namespace SetupUtility
{
  class Program
  {
    static private String GetInstallationFolder()
    {
      RegistryKey key;

      key = Registry.LocalMachine.OpenSubKey("Software").OpenSubKey("metaSapiens");
      if (key == null)
        throw new Exception(@"Registry key HKLM\Software\metaSapiens not found.");
      key = key.OpenSubKey("PageMethods for VS 2005");
      if (key == null)
        throw new Exception(@"Registry key HKLM\Software\PageMethods for VS 2005 not found.");
      return (String) key.GetValue("Folder");
    }

    static void Main(string[] args)
    {
      /*
      String folder;

      folder = GetInstallationFolder();
      if (String.IsNullOrEmpty(folder))
        throw new Exception("Folder value missing.");
      */

      foreach (String s in args)
        Console.WriteLine(s);

      Console.ReadLine();
    }
  }
}
